/* 全局样式 */
:root {
    --primary-gradient: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
    --hover-gradient: linear-gradient(135deg, #000DFF 0%, #6B73FF 100%);
    --text-color: #ffffff;
    
    /* Bootstrap 5 深色模式主题覆盖 */
    --bs-primary: #6B73FF;
    --bs-primary-rgb: 107, 115, 255;
    --bs-primary-text: #6B73FF;
    --bs-primary-bg-subtle: rgba(107, 115, 255, 0.1);
    --bs-primary-border-subtle: rgba(107, 115, 255, 0.3);

    /* 深色模式颜色 */
    --bs-body-color: #e2e2e2;
    --bs-body-bg: #3d4185;
    --bs-emphasis-color: #fff;
    --bs-emphasis-color-rgb: 255, 255, 255;
    --bs-secondary-color: rgba(255, 255, 255, 0.75);
    --bs-secondary-color-rgb: 255, 255, 255;
    --bs-secondary-bg: #4a4fa0;
    --bs-tertiary-color: rgba(255, 255, 255, 0.5);
    --bs-tertiary-bg: #585ebb;
    --bs-border-color: #6b73ff;
    --bs-border-color-translucent: rgba(107, 115, 255, 0.15);
    --bs-heading-color: #fff;
    --bs-link-color: #6B73FF;
    --bs-link-hover-color: #8b91ff;
    --bs-code-color: #e685b5;

    /* 深色模式按钮状态 */
    --bs-btn-color: #fff;
    --bs-btn-bg: #6B73FF;
    --bs-btn-border-color: #6B73FF;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #5158ff;
    --bs-btn-hover-border-color: #5158ff;
    --bs-btn-focus-shadow-rgb: 107, 115, 255;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #4147ff;
    --bs-btn-active-border-color: #4147ff;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #6B73FF;
    --bs-btn-disabled-border-color: #6B73FF;
}

body {
    background: var(--primary-gradient);
    color: var(--text-color);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.bg-dark {
    background-color: transparent !important;
}

/* 背景样式 */
.geometric-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--primary-gradient);
}

.geometric-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 50%;
}

.shape1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -100px;
    transform: rotate(15deg);
}

.shape2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -150px;
    transform: rotate(-15deg);
}

.shape3 {
    width: 300px;
    height: 300px;
    top: 40%;
    right: 15%;
    transform: rotate(30deg);
}

.shape4 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    transform: rotate(-30deg);
}

.shape5 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 25%;
    transform: rotate(45deg);
}

/* Bootstrap 覆盖样式 */
.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

.nav-tabs .nav-link:hover {
    color: var(--text-color);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.card {
    background: rgba(61, 65, 133, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 115, 255, 0.3);
    box-shadow: 0 4px 6px rgba(107, 115, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(107, 115, 255, 0.15);
}

.form-control, .form-select {
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
}

.form-control:focus, .form-select:focus {
    background-color: var(--bs-secondary-bg);
    border-color: var(--bs-primary);
    color: var(--bs-body-color);
    box-shadow: 0 0 0 0.25rem rgba(107, 115, 255, 0.25);
}

.form-control::placeholder {
    color: var(--bs-tertiary-color);
}

.list-group-item {
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
    margin-bottom: 0.5rem;
    border-radius: 0.375rem;
}

.list-group-item:hover {
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-primary);
}

.modal-content {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.nav-tabs {
    border-bottom-color: var(--bs-border-color);
}

.nav-tabs .nav-link {
    color: var(--bs-secondary-color);
}

.nav-tabs .nav-link:hover {
    color: var(--bs-emphasis-color);
    border-color: var(--bs-border-color);
    background-color: var(--bs-tertiary-bg);
}

.nav-tabs .nav-link.active {
    color: var(--bs-emphasis-color);
    background-color: var(--bs-tertiary-bg);
    border-color: var(--bs-border-color);
}

/* Bootstrap 覆盖样式 */
.btn-primary {
    background-color: var(--bs-primary);
    border: none;
    transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #5158ff !important;
    border: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(107, 115, 255, 0.2);
}

.btn-outline-primary {
    color: var(--bs-primary);
    background-color: transparent;
    border: 1px solid var(--bs-primary);
    transition: all 0.2s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #fff !important;
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(107, 115, 255, 0.2);
}

.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.7);
}

/* 插件卡片样式 */
.plugin-card {
    backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    height: 100%;
}

.plugin-card:hover {
    transform: translateY(-5px);
}

.plugin-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.plugin-icon img {
    width: 40px;
    height: 40px;
    color: white;
}

.plugin-name {
    font-size: 0.9rem;
    margin: 0;
    color: var(--bs-emphasis-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 插件卡片动画 */
.col-6, .col-sm-4, .col-md-3, .col-lg-2 {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 